<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var ranking=prompt ("请输入排名","");
        var jiang;
        if(ranking==1){
            jiang="奖励1000元";
        }else if(ranking==2){
            jiang="奖励800元";
        }else if(ranking==3){
            jiang="奖励300元";
        }else{
            jiang="未获奖";
        }
        confirm(jiang);
    </script>
</head>
<body>
    
</body>
</html>